//
//  PostDetailViewController.m
//  HeSiad
//
//  Created by ZC on 15/4/29.
//  Copyright (c) 2015年 MWJ. All rights reserved.
//

#import "PostDetailViewController.h"
#import "PostDetailView.h"

@interface PostDetailViewController (){
    PostDetailView *postDetailView;
}

@end

@implementation PostDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"帖子详情";
    // Do any additional setup after loading the view.
    
    //加载自定义的scrollview
    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"PostDetailView" owner:self options:nil];
    postDetailView = nib[0];
    
    //框架scrollview的大小
    self.PostDetailScrollView.contentSize = CGSizeMake(self.view.frame.size.width, postDetailView.frame.size.height);
    
    //把自定义的scrollview添加到框架scrollview上
    [self.PostDetailScrollView addSubview:postDetailView];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
